﻿using System.Collections;
using System.Collections.Generic;
using FluentTests.Framework;

namespace FluentTests.MSTest
{
    public sealed class Ensure
    {
        private static readonly IAssertionProvider assertionProvider = new MSTestAssertionProvider();

        public static EnsuredWrapper<object> That(object compareValue)
        {
            return new EnsuredWrapper<object>(assertionProvider, compareValue);
        }

        public static EnsuredWrapper<T> That<T>(T compareValue)
        {
            return new EnsuredWrapper<T>(assertionProvider, compareValue);
        }

        public static CollectionEnsuredWrapper<IEnumerable<TElementType>, TElementType> ThatEnumerable<TElementType>(IEnumerable<TElementType> enumerable) where TElementType : class
        {
            return new CollectionEnsuredWrapper<IEnumerable<TElementType>, TElementType>(assertionProvider, enumerable);
        }
    }
}
